That is because your Lord will not be destroying any town unjustly while its habitants are heedless.
The Impartial Lord will not destroy or punish any town unjustly when its inhabitant is heedless. Lord says through verses 2: 38-39: “Get you all down from Paradise! If you receive the Guidance Adhikr from Me, then anyone who follows My Guidance, there shall be no fear upon them, and for them will not be grieved. And those who hide and reject with Our verses, those are the inmates of the Fire, they shall remain in it forever". It is asked through verse 39: 32: "Who more unjust than the one who forges lie upon Lord or rejects His verse after It has come to them? Is there not in Hell a residence for the disbelievers?" When the inmates of a community become transgressors and wrongdoers by rejecting Lord's Book and the Messenger, Lord wipes out them completely saving the Messenger and believers with him as explained in verse 6: 47.
Lord will not punish a community while the Messenger or a believer is present in them as explained in verse 8: 33. Verse 17: 15 ends as: “Indeed, Lord is not a punisher until He sends a Messenger to a community”.
Today as there is no group of believers anywhere in the world to witness the life of Messenger upon the other people belonging to Messenger’s community such as Jains, Buddhists, Hindus, Jews, and Christians, they will not be punished in this world as well as in the Hereafter. But they will be sent to any world other than Paradise or Hell on the Day of Judgment as explained in verse 2: 62. See explanation 5: 49, 59; 6: 115-116, and 9: 67-6.